package com.hao.eduorder.client;

import com.hao.commonutils.ordervo.UcenterMemberOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author chenwenhao
 * @version 1.0.0
 * @ClassName UcenterClient.java
 * @createTime 2021/1/20,20:46
 * @Description
 */
@Component
@FeignClient("service-ucenter")
public interface UcenterClient {

    /**
     * 得到用户信息订单
     *
     * @param id id
     * @return {@link UcenterMemberOrder}
     */
    @PostMapping("/educenter/member/getUserInfoOrder/{id}")
    public UcenterMemberOrder getUserInfoOrder(@PathVariable("id") String id);
}
